import { axios as request } from '@/utils/request'

const platformVisitAPI = {
  getPVUVData: '/analytics/hTPlatformVisitAction/getPVUVData',
  getStatistics: '/analytics/hTPlatformVisitAction/getStatistics',
  getUserDistribution: '/analytics/hTPlatformVisitAction/getUserDistribution',
  getClientDistribution: '/analytics/hTPlatformVisitAction/getClientDistribution'
}

export function getPVUVDataRequest(parameters) {
  return request({
    url: platformVisitAPI.getPVUVData,
    method: 'get',
    data: parameters
  })
}

export function getStatisticsRequest(parameters) {
  return request({
    url: platformVisitAPI.getStatistics,
    method: 'get',
    data: parameters
  })
}

export function getUserDistributionRequest(parameters) {
  return request({
    url: platformVisitAPI.getUserDistribution,
    method: 'get',
    data: parameters
  })
}

export function getClientDistributionRequest(parameters) {
  return request({
    url: platformVisitAPI.getClientDistribution,
    method: 'get',
    data: parameters
  })
}

